/* src/components/ConfirmDialog.css */

.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.confirm-dialog {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-width: 400px;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.confirm-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.confirm-icon {
  font-size: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.confirm-icon-danger {
  background-color: #fef2f2;
  color: #dc2626;
}

.confirm-icon-warning {
  background-color: #fffbeb;
  color: #d97706;
}

.confirm-icon-info {
  background-color: #eff6ff;
  color: #2563eb;
}

.confirm-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  flex: 1;
}

.confirm-body {
  padding: 16px 24px 24px;
}

.confirm-message {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 0 24px 24px;
}

.confirm-cancel-button,
.confirm-confirm-button {
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  min-width: 80px;
}

.confirm-cancel-button {
  background-color: #f9fafb;
  color: #374151;
  border: 1px solid #d1d5db;
}

.confirm-cancel-button:hover {
  background-color: #f3f4f6;
}

.confirm-confirm-button {
  color: white;
}

.confirm-danger {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

.confirm-danger:hover {
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.confirm-warning {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.confirm-warning:hover {
  background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.confirm-info {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.confirm-info:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

/* 响应式设计 */
@media (max-width: 640px) {
  .confirm-dialog {
    width: 95%;
    margin: 20px;
  }
  
  .confirm-header,
  .confirm-body,
  .confirm-actions {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .confirm-actions {
    flex-direction: column;
  }
  
  .confirm-cancel-button,
  .confirm-confirm-button {
    width: 100%;
  }
} 